Skip to content

chore!: drop jQuery UI and jQuery#57648

Merged
susnux merged 11 commits intomasterfrom
chore/drop-jquery
Feb 17, 2026
Merged

chore!: drop jQuery UI and jQuery#57648
susnux merged 11 commits intomasterfrom
chore/drop-jquery

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jan 20, 2026

Summary

jQuery is deprecated and will be removed in Nextcloud 19

Well no it was not. But it is now with Nextcloud 34.

This PR removed all jQuery UI related code:

  • jQuery UI itself
  • UI API which was extending jQuery UI:
    • OC.Dialogs.fileexists -> use @nextcloud/dialogs instead
    • OC.Notifications -> use @nextcloud/dialogs instead
    • OC.Apps -> use @nextcloud/vue components
    • OC.*menu* -> use @nextcloud/vue components
    • .live-relative-timestamp -> use NcDateTime from @nextcloud/vue
    • snapper -> use NcAppNavigation from @nextcloud/vue
  • Remove jQuery
    • Remove code that extended jQuery
      • Backbone
      • OC.Files.Client

TODO

Requires this first:

Checklist

@susnux susnux added 2. developing Work in progress 3. to review Waiting for reviews technical debt ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Jan 20, 2026
@susnux susnux added this to the Nextcloud 34 milestone Jan 20, 2026
@susnux susnux removed the 3. to review Waiting for reviews label Jan 20, 2026
@susnux susnux force-pushed the chore/drop-jquery branch from 5550b87 to d8189c4 Compare January 21, 2026 23:18
@susnux susnux force-pushed the chore/drop-jquery branch from d8189c4 to 85965c0 Compare January 25, 2026 12:36
@susnux susnux force-pushed the chore/drop-jquery branch 3 times, most recently from 08f5601 to 89dc2be Compare January 27, 2026 13:06
@susnux susnux self-assigned this Jan 27, 2026
@susnux susnux added the pending documentation This pull request needs an associated documentation update label Jan 28, 2026
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
It is deprecated since 29.0.0.
Instead use `openConflictPicker` from the `@nextcloud/upload` (Vue 2).
Or from `@nextcloud/dialogs` (every other framework like Vue 3 etc).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Deprecated since 17.0.0, use the `@nextcloud/dialogs` package instead.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Instead use components from `@nextcloud/vue`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Instead use Vue components.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
…tcloud/vue/components/NcDateTime` instead

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Use the DAV client from `@nextcloud/files/dav` instead.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
"jQuery is deprecated and will be removed with Nextcloud 19"
Well... At least it is removed now 😉

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux marked this pull request as ready for review February 17, 2026 11:53
@susnux susnux requested review from a team as code owners February 17, 2026 11:53
@susnux susnux requested review from Altahrim, icewind1991, nfebe, salmart-dev, skjnldsv and szaimen and removed request for a team February 17, 2026 11:53
@susnux susnux added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Feb 17, 2026

const fileInfo = new OC.Files.FileInfo(rawFileInfo)

// TODO remove when no more legacy backbone is used
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Ideally we would migrate away to Node API. But files_sharing is very tangled with fileinfo objects.
So better to do it later in a follow up to not make this PR even worse (in terms of reviewability).

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+538 -6,001 this is the kind of PR I like 😎

@susnux susnux merged commit b6d22f3 into master Feb 17, 2026
187 of 192 checks passed
@susnux susnux deleted the chore/drop-jquery branch February 17, 2026 13:14
@szaimen
Copy link
Contributor

szaimen commented Feb 17, 2026

🎉🎉🎉🎉🎉

@provokateurin
Copy link
Member

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews pending documentation This pull request needs an associated documentation update ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move away from jQuery and jQuery UI

4 participants

Comments